package com.flying.flow.model;

import java.util.Date;

import com.flying.framework.annotation.Param;
import com.flying.framework.data.Data;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="f_task_participant",title="任务参与者", table="f_task_participant", primaryKeys={"task_id","participant_id"})
public class TaskParticipant extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "f_task_participant";
	
	public final static String TASK_ID = "task_id";
	public final static String PARTICIPANT_ID = "participant_id";
	public final static String PARTICIPANT_NAME = "participant_name";
	public final static String CREATOR = "creator";
	public final static String CREATE_TIME = "create_time";
	
	
	@Param(value=TASK_ID,   required=true,   maxlength=0,	desc="任务ID" )
	private Long taskId;
	
	@Param(value=PARTICIPANT_ID,   required=true,   maxlength=100,	desc="参与者ID" )
	private String participantId;
	
	@Param(value=PARTICIPANT_NAME,   required=true,   maxlength=100,	desc="参与者名称")
	private String participantName;
	
	@Param(value=CREATOR,   required=false,   maxlength=100,	desc="创建人" )
	private String creator;
	
	@Param(value=CREATE_TIME,   required=false,   maxlength=0,	desc="创建时间" )
	private Date createTime;
	
	
	public Long getTaskId() {
		return this.taskId;
	}
	
	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}
	
	public String getParticipantId() {
		return this.participantId;
	}
	
	public void setParticipantId(String participantId) {
		this.participantId = participantId;
	}
	
	public String getParticipantName() {
		return participantName;
	}

	public void setParticipantName(String participantName) {
		this.participantName = participantName;
	}

	public String getCreator() {
		return this.creator;
	}
	
	public void setCreator(String creator) {
		this.creator = creator;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	

}